﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.XtraEditors.Repository;
using WmsApp.StaticData.Unity;

namespace WmsApp.StaticData
{
    public class CustomerObserver : BaseObserver
    {
        public CustomerObserver(string name, ISubject subject,
            RepositoryItemLookUpEditBase lookUpEdit, ICanClosing canClosing) :
            base(name, subject, lookUpEdit, canClosing)
        {
        }

        #region Overrides of BaseObserver

        public override void UpdateData()
        {
            if (this.LookUpEdit != null)
            {
                this.LookUpEdit.DataSource = StaticObjects.GetCustomers();
            }
        }

        #endregion
    }
}
